<?php
class Status extends AppModel {

	var $name = 'Status';
	
	var $actsAs = array('Ownable');

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
	
	function findBetweenDates($day1, $day2) {
		$params = array(
			'conditions' => array(
				array('Status.date >=' => $day1),
				array('Status.date <=' => $day2)),
			'recursive' => -1, 
			'order' => array('Status.date' => 'asc')
		);
		return $this->find('all', $params);
	}

}
?>